package com.ddl.web.elastic.mapper;

import com.ddl.web.elastic.domain.Item;

import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

public interface ItemRepository extends ElasticsearchRepository<Item, Long> {

	/**
	 * 根据价格区间查询
	 *
	 * @param price1
	 * @param price2
	 * @return
	 */
	List<Item> findByPriceBetween(double price1, double price2);
}
